<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=s, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            width: 200px;
            height: 200px;
            background-color: pink;
            /* 可以把块元素放到一行上，但是他们之间有空隙，不能处理 */
            /* display: inline-block; */
            float: left;
        }

        div:nth-child(2) {
            background-color: purple;
        }

        div:nth-last-child() {
            background-color: royalblue;
        }
    </style>
</head>

<body>
    <div></div>
    <div></div>
    <div></div>
</body>

</html>